package com.accenture.adf.newcodington.module11.activity.advanced;
/**
 * ParkImplementation class that inherits from RidesHosting
 */
public class Park implements RidesHosting {

	private int parkRide=0;
	
	private int parkRideLocation=0;
			
	public void assignRideCategory() {
		parkRide=RidesHosting.LOW_THRILL;
	}	
	
	/**
	 * Method for getting RIDEDETAILS based on the parkRide
	 */
	public String getRideDetails() 
	{	
		String rideDetails="";
		
		if(parkRide==RidesHosting.LOW_THRILL) {
			rideDetails="Low Thrill Rides for Childern";
		}
		if(parkRide==RidesHosting.HIGH_THRILL) {
			rideDetails="High Thrill Rides for Teens and Adults";
		}
	return rideDetails;		
	}
		
	/**
	 * Method for assigning RIDETYPE based on the parkRide
	 */
	public void assignRideLocation() {
		parkRideLocation = RidesHosting.OUTDOOR;		
	}
	
	/**
	 * Method for getting RIDETYPE based on the parkRide
	 */
	public String getRideLocation() {
		String rideTypeDetails="";
		
		if(parkRideLocation == RidesHosting.INDOOR) {
			rideTypeDetails="Indoor Ride";
		}
		if(parkRideLocation == RidesHosting.OUTDOOR) {
			rideTypeDetails="Outdoor Ride";
		}
		if(parkRideLocation == RidesHosting.VIRTUAL) {
			rideTypeDetails="Virtual Ride";
		}
		return rideTypeDetails;
	}	
}
